package edu.ustb.sql.sleuth.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author ShiZhe
 * @create 2020-10-17 9:01
 */
@Data
@Entity
@Table(name = "zipkin_annotations")
public class ZipkinAnnotations {
    @Id
    private Long trace_id;
    private Long span_id;
    private String a_key;
    private Long a_timestamp;
    private Integer endpoint_ipv4;
    private Long endpoint_ipv6;
    private Integer endpoint_port;
    private String endpoint_service_name;

    public Long getTrace_id() {
        return trace_id;
    }

    public void setTrace_id(Long trace_id) {
        this.trace_id = trace_id;
    }

    public Long getSpan_id() {
        return span_id;
    }

    public void setSpan_id(Long span_id) {
        this.span_id = span_id;
    }

    public String getA_key() {
        return a_key;
    }

    public void setA_key(String a_key) {
        this.a_key = a_key;
    }

    public Long getA_timestamp() {
        return a_timestamp;
    }

    public void setA_timestamp(Long a_timestamp) {
        this.a_timestamp = a_timestamp;
    }

    public Integer getEndpoint_ipv4() {
        return endpoint_ipv4;
    }

    public void setEndpoint_ipv4(Integer endpoint_ipv4) {
        this.endpoint_ipv4 = endpoint_ipv4;
    }

    public Long getEndpoint_ipv6() {
        return endpoint_ipv6;
    }

    public void setEndpoint_ipv6(Long endpoint_ipv6) {
        this.endpoint_ipv6 = endpoint_ipv6;
    }

    public Integer getEndpoint_port() {
        return endpoint_port;
    }

    public void setEndpoint_port(Integer endpoint_port) {
        this.endpoint_port = endpoint_port;
    }

    public String getEndpoint_service_name() {
        return endpoint_service_name;
    }

    public void setEndpoint_service_name(String endpoint_service_name) {
        this.endpoint_service_name = endpoint_service_name;
    }

    @Override
    public String toString() {
        return "ZipkinAnnotations{" +
                "trace_id=" + trace_id +
                ", span_id=" + span_id +
                ", a_key='" + a_key + '\'' +
                ", a_timestamp=" + a_timestamp +
                ", endpoint_ipv4=" + endpoint_ipv4 +
                ", endpoint_ipv6=" + endpoint_ipv6 +
                ", endpoint_port=" + endpoint_port +
                ", endpoint_service_name='" + endpoint_service_name + '\'' +
                '}';
    }
}
